package com.example.hospitalsystem.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 处方表
 */
@Data
@TableName(value="prescription")
public class Prescription implements Serializable {

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    /**
     * 处方ID
     */
    @TableId(value = "prescription_id", type = IdType.AUTO)
    private Integer prescriptionId;

    /**
     * 处方ID
     */
    @TableField(value = "patient_id")
    private Integer patientId;

    /**
     * 医生名称
     */
    @TableField("doctor_name")
    private String doctorName;

    /**
     * 处方内容
     */
    @TableField("prescription_content")
    private String prescriptionContent;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDate createTime;

//    /**
//     * 付款金额
//     */
//    private BigDecimal paymentAmount;

    /**
     * 患者身份(1:学生，2:教职工，3:其他人员)
     */
    @TableField("identity")
    private Integer identity;

}
